main()
{
	int a,b,c,d;
	input a;
	b=a+10;
	c=b-20;
	d=c*30;
	output a;
	output b;
	output c;
	output d; 
	output "\n";
}
